# Introduction

### 💡 What is Module Federation?

Module Federation is an architectural pattern for the decentralization of JavaScript applications (similar to microservices on the server-side). It allows you to share code and resources among multiple JavaScript applications (or micro-frontends). This can help you:

- Reduce code duplication
- Improve code maintainability
- Lower the overall size of your applications
- Enhance the performance of your applications

### ✨ What is Module Federation 2.0?

`Module Federation 2.0` differs from the `Module Federation` built into `Webpack5` by providing not only the core features of module export, loading, and dependency sharing but also additional dynamic type hinting, `Manifest`, `Federation Runtime`, and `Runtime Plugin System`. These features make `Module Federation` more suitable for use as a micro-frontend architecture in large-scale `Web` applications.

### 🔥 Features

Module Federation has the following features:

- ⚡ Code sharing, Dependency reuse
- 📝 Manifest
- 🎨 [Module Federation Runtime](../basic/runtime/runtime.mdx)
- 🧩 [Runtime Plugins System](../../plugin/dev/index.mdx)
- 🚀 [Dynamic type prompt](../basic/type-prompt.mdx)
- 🛠️ [Chrome Devtool](../debug/chrome-devtool)
- 🦀 [Rspack](../basic/rspack.mdx) and [Webpack](../basic/webpack.mdx) Support


### 🎯 Use Cases

Module Federation is suitable for the following scenarios:

- **Large Applications**: For large applications, you can break the application into multiple micro-frontends and use Module Federation to share code and resources between them.
- **Microfrontend Architecture**: Module Federation is an ideal tool for building microfrontend architectures.
- **Multi-team Development**: Module Federation can assist multiple teams in collaboratively developing large applications.

### 🕠 History of Module Federation

Module Federation is a new feature introduced in Webpack 5, but its history dates back to 2017. At that time, the Webpack team began exploring a way to share code between multiple applications.

- In 2018, Webpack 4.20 was released, introducing module hooks, which laid the foundation for the development of Module Federation.

- In 2019, Webpack 5 was released, officially introducing the Module Federation feature.

Module Federation has become a powerful tool for building modern web applications.

### 🕰️ The Future of Module Federation

Module Federation aims to become an architectural method for building large web applications, similar to microservices in the backend. Module Federation will provide more capabilities to meet the foundational needs of large web application decentralization, currently including these parts:

- Providing comprehensive Devtool tools
- Offering more high-level framework capabilities like Router, Sandbox, SSR
- Providing best practices for large web applications based on Module Federation

## Follow Us

* [GitHub - Star us on GitHub](https://github.com/module-federation/core)
* [Discord](https://discord.com/channels/1055442562959290389/1055442563718467637)
* [Lark Group (Chinese Community)](https://applink.larkoffice.com/client/chat/chatter/add_by_link?link_token=a41s8f79-741f-41ba-8349-395d9a0e9662)

## ✨ Next Steps

You might want to:

import NextSteps from '@components/NextSteps';
import Step from '@components/Step';

<NextSteps>
  <Step
    href="/guide/start/quick-start"
    title="Get Started Quickly"
    description="Learn how to use Module Federation"
  />
  <Step
    href="/guide/start/features"
    title="Feature Navigation"
    description="Explore all the features provided by Module Federation"
  />
  <Step
    href="/configure/index"
    title="Consult Configuration"
    description="Understand how to configure Module Federation"
  />
</NextSteps>
